package com.kaiwukj.android.ufamily.mvp.http.exception;

public class ApiException extends Exception {
    private int errCode;

    public ApiException(int code, String msg) {
        super(msg);
        errCode = code;
    }

    public ApiException(int code) {
        super(ExceptionHelper.handleErrCode(code));
        errCode = code;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public int getErrCode() {
        return errCode;
    }


}
